 
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'>*</span> 信息类型：</label>
      <div class="col-sm-9 col-xs-12">
              <span><input type="radio" onchange="navtype(0)" name="rent_type" {if $renttype==0}checked{/if} value="0"> 出售</span>
             <span><input type="radio" onchange="navtype(2)" name="rent_type"  {if $renttype==2}checked{/if} value="2">  出租</span>  
             <span style='color:red'> 注意切换发布模式表单需要重新填写。</span>     
      </div>
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'>*</span>标 题</label>
      <div class="col-sm-9 col-xs-12">
          <input type="text" name="data[title]" id="title" class="form-control"
                          placeholder="必填项（很重要！一个好的推荐广告，可以大大提升房源点击量！）"  value="{$item['title']}" />
                  
      </div>
  </div>
  
    <!-- 加入城市区域商圈选择 -->
    {template 'send/city_area_quan'}
    <!-- 加入城市区域商圈选择 -->
 
  
  <div class="form-group">
  
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span> 仓库地址</label>
      <div class="col-sm-9 col-xs-9">
          <input type="text" name="data[village_name]" id="village_name" class="form-control"
                          placeholder="请输入仓库地址" value="{$item['village_name']}" />
                  <input id="h24" name="data[village_id]" type="hidden" value="{$item['village_id']}" class="txt" maxlength="20"/>
      </div>
  </div>
  
 
  
      <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>仓库类型</label>
      <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <?php  echo
   form_element::select($selects['cangku_type'],'data[house_type]','house_type',$item['house_type']);
   ?>
          <span class="input-group-addon"></span>
              </div>
      </div>
          <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <span class="input-group-addon">仓库用途</span> 
                  <?php  echo
   form_element::select($selects['cangku_used'],'data[danyuan]','danyuan',$item['danyuan']);
   ?>	  	
              </div>
      </div>
     
      <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
                  <span class="input-group-addon">新旧</span>  
   <?php  echo
   form_element::select($selects['oldage'],'data[dong]','dong',$item['dong']);
   ?>          
            
              </div>
      </div>
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>楼 层</label>
      <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
   <?php 
    echo form_element::select(['单层','多层','立体','简仓','露天'],'data[storey]','storey',$item['storey']);
   ?>
  <!--		<input type="text" name="data[storey]" id="storey" class="form-control"
                          placeholder="第几层"  value="{$item['storey']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
            <span class="input-group-addon">层</span> -->
              </div>
      </div>
          <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
                  <span class="input-group-addon">首层高</span>  
          <input type="text" name="data[total_storey]" id="total_storey" class="form-control"
                          placeholder="几"  value="{$item['total_storey']}" onkeyup="this.value=this.value.replace(/\D/g,'')" size="1" maxlength="3" onafterpaste="this.value=this.value.replace(/\D/g,'')"/>           
            <span class="input-group-addon">米</span>  
              </div>
      </div>
  </div>
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>面 积</label>
      <div class="col-sm-3 col-xs-3">
              <div class="input-group form-group">
          <input type="text" name="data[superficie]" id="superficie" class="form-control"
                          placeholder="请输入数字， 单位 ㎡ "  value="{$item['superficie']}" />           
            <span class="input-group-addon">㎡</span> 
              </div>
      </div>
  </div>
  
  {if $renttype==2}
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>租 金</label>
      <div class="col-sm-4 col-xs-4">
              <div class="input-group " style="display: flex;">
                <div>
          <input type="text" name="data[loyer]" id="loyer" class="form-control"
                          placeholder="请输入数字，0表面议"  value="{$item['loyer']}" /> 
                          <?php if($item['prix_unitaire']!='元/月' || $item['prix_unitaire']!='元/㎡/月') {$item['prix_unitaire']='';} ?>           
                  {if $item['prix_unitaire']}
       <input type="hidden" name="data[prix_unitaire]" id="prix_unitaire" value="{$item['prix_unitaire']}"/> 
           {else}<input type="hidden" name="data[prix_unitaire]" value="元/月"/> {/if}
                </div>
                <div style="display:table-cell; ">
                    <select name="unitaire" onchange="$('#prix_unitaire').val(this.value)">
                                <option {if $item['prix_unitaire']=='元/月'}selected{/if} value="元/月">元/月</option>
                                <option {if $item['prix_unitaire']=='元/㎡/月'}selected{/if}  value="元/㎡/月">元/㎡/月</option> 
                    </select>
                    </div> 
              </div>
      </div>
      
          <label class="col-xs-12 col-sm-1 col-md-1 control-label">
              <span style='color:red'></span>押金方式</label>
          <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <input type="text" name="data[menpai]" id="menpai" class="form-control"
                          placeholder=" 押一付一"  value="{$item['menpai']}" />           
            <span class="input-group-addon">-</span> 
              </div>
      </div>
       <div class="col-sm-2 col-xs-2">
              <div class="input-group form-group">
          <input type="text" name="data[room]" id="room" class="form-control"
                          placeholder="几月"  value="{$item['room']}" />           
            <span class="input-group-addon">月起租</span> 
              </div>
      </div>
  </div>
  {else}
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>售 价</label>
      <div class="col-sm-4 col-xs-4">
              <div class="input-group form-group">
          <input type="text" name="data[loyer]" id="loyer" class="form-control"
                          placeholder="请输入数字，0表面议"  value="{$item['loyer']}" /> 
                  <span class="input-group-addon">万元</span> 
       <input type="hidden" name="data[prix_unitaire]" value="万"/> 	
              </div>
      </div>
       
  </div>
 
  
  {/if}
   
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">配套信息</label>
      <div class="col-sm-9 col-xs-12">
  <?php
   
  echo form_element::checkbox($selects['rent_changfang'],'disposition','disposition',$item['disposition']);?>
  
      </div>
  </div>
  <div class="form-group">
    <label class="col-xs-12 col-sm-3 col-md-2 control-label">
            <span style='color:red'></span>房源编号</label>
    <div class="col-sm-6 col-xs-6">
        <input type="text" name="data[house_sno]" id="house_sno" class="form-control"
                        placeholder="请输入公司房源编号"  value="{$item['house_sno']}" />
    </div>
</div>
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">有效期至</label>
      <div class="col-sm-4 col-xs-6">
          {php echo tpl_form_field_date('endtime', !empty($item['endtime']) ? date('Y-m-d H:i',$item['endtime']) : date('Y-m-d H:i'), 1)}
  
      </div>
  </div>
  
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>经纪人</label>
      <div class="col-sm-4 col-xs-6">
              <div class="input-group form-group">
            <?php  echo
   form_element::select($brokers,'data[broker_id]','broker_id',$item['broker_id']);
   ?>        
            <p>添加经纪人后联系人信息不用填写。</p> 
              </div>
      </div>
       
          
  </div>
  <div class="form-group">
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">
              <span style='color:red'></span>联系信息</label>
      <div class="col-sm-4 col-xs-6">
              <div class="input-group form-group">
          <input type="text" name="data[publish_name]" id="publish_name" class="form-control"
                          placeholder="联系人"  value="{$item['publish_name']}" />           
            <span class="input-group-addon">名称</span> 
              </div>
      </div>
          <div class="col-sm-4 col-xs-6">
              <div class="input-group form-group">
          <input type="text" name="data[linkphone]" id="linkphone" class="form-control"
                          placeholder="手机号"  value="{$item['linkphone']}"/>           
            <span class="input-group-addon">手机号</span>  
              </div>
      </div>
  </div>
  
  <div class="form-group">
  
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">形象图</label>
  
      <div class="col-sm-9 col-xs-12">
  
          {php echo tpl_form_field_image('thumb', $item['thumb'], '', array('extras' => array('text' => 'readonly')))}
  
      </div>
  
  </div>
  
  <div class="form-group">
  
      <label class="col-xs-12 col-sm-3 col-md-2 control-label">房源图片</label>
  
      <div class="col-sm-9 col-xs-12">
  
          {php echo tpl_form_field_multi_image('thumbs',$piclist)}
  
      </div>
  
  </div>